function currentDate() {
  const date = new Date()
  const year = date.getFullYear()
  const month = String(date.getMonth() + 1).padStart(2, '0') // 确保月份是两位数
  const day = String(date.getDate()).padStart(2, '0') // 确保日期是两位数
  return `${year}-${month}-${day}`
}

module.exports = {
  currentDate
}